package com.pace.day03;import com.pace.day03.bean.Dog;import com.pace.day03.conditon.DaoConditon;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Conditional;import org.springframework.context.annotation.Configuration;/** * @Auther: Administrator * @Date: 2019/3/27 0027 23:05 * @Description: */@Configurationpublic class ConditionConfig {    @Bean    @Conditional(DaoConditon.class)    public Dog getDog(){        return new Dog();    }}